package com.yunfei.yunhetong.constractCancel.bo;
import com.yunfei.yunhetong.constractCancel.entity.*;
import com.yunfei.utils.string.StringUtil;
/**
*@tablename CONSTRACT_CANCEL
*@author zhengyunfei
*@createDate Fri Aug 30 13:26:57 CST 2019
*/ 
public class ConstractCancelBo implements java.io.Serializable{

	private String contractId;
	private String cancelContractNum;
	private String cancelContractId;
	private String contTyp;
	private String contractSts;
	private String createDate;
	private String operatorName;
	private String field;
	private String order;
   /**
		* 更改排序字段
		* @return
		*/
   public String getField() {
		   return field;
   }
   public void setField(String field) {
		   this.field = field;
   }
   public String getOrder() {
		   return order;
   }
   public void setOrder(String order) {
		   this.order = order;
   }
	private int curNo;
	public int getCurNo() {
		return curNo;
	}	
	public void setCurNo(int curNo) {
		this.curNo = curNo;
	}
	private int curSize;
	public int getCurSize() {
		return curSize;
	}
	public void setCurSize(int curSize) {
		this.curSize = curSize;
	}
	public String getContractId() {
		return contractId;
	}

	public void setContractId(String contractId) {
		this.contractId = contractId;
	}
	public void setCancelContractNum(String cancelContractNum){
		this.cancelContractNum=cancelContractNum;
	}
	public String getCancelContractNum(){
		return cancelContractNum;
	}
	public void setCancelContractId(String cancelContractId){
		this.cancelContractId=cancelContractId;
	}
	public String getCancelContractId(){
		return cancelContractId;
	}
	public void setContTyp(String contTyp){
		this.contTyp=contTyp;
	}
	public String getContTyp(){
		return contTyp;
	}
	public void setContractSts(String contractSts){
		this.contractSts=contractSts;
	}
	public String getContractSts(){
		return contractSts;
	}
	public void setCreateDate(String createDate){
		this.createDate=createDate;
	}
	public String getCreateDate(){
		return createDate;
	}
	public void setOperatorName(String operatorName){
		this.operatorName=operatorName;
	}
	public String getOperatorName(){
		return operatorName;
	}
	public static ConstractCancelEntity boToEntity(ConstractCancelBo bo){
		ConstractCancelEntity entity=new ConstractCancelEntity();
		entity.setCancelContractId(bo.getContractId());
		entity.setCancelContractNum(bo.getCancelContractNum());
		entity.setCancelContractId(bo.getCancelContractId());
		entity.setContTyp(bo.getContTyp());
		entity.setContractSts(bo.getContractSts());
		entity.setCreateDate(bo.getCreateDate());
		entity.setOperatorName(bo.getOperatorName());
		return entity;
	}
	public static ConstractCancelBo entityToBo(ConstractCancelEntity bo){
		ConstractCancelBo entity=new ConstractCancelBo();
		entity.setCancelContractId(bo.getContractId());
		entity.setCancelContractNum(bo.getCancelContractNum());
		entity.setCancelContractId(bo.getCancelContractId());
		entity.setContTyp(bo.getContTyp());
		entity.setContractSts(bo.getContractSts());
		entity.setCreateDate(bo.getCreateDate());
		entity.setOperatorName(bo.getOperatorName());
		return entity;
	}
	public static String changeFieldColumn(String field){
		String result="";
			if(!StringUtil.isNullOrEmpty(field)){
				if(field.equals("id")){
					result="ID";
				}
				if(field.equals("cancelContractNum")){
					result="CANCEL_CONTRACT_NUM";
				}
				if(field.equals("cancelContractId")){
					result="CANCEL_CONTRACT_ID";
				}
				if(field.equals("contTyp")){
					result="CONT_TYP";
				}
				if(field.equals("contractSts")){
					result="CONTRACT_STS";
				}
				if(field.equals("createDate")){
					result="CREATE_DATE";
				}
				if(field.equals("operatorName")){
					result="OPERATOR_NAME";
				}
		}
		return result;
	}
}

